import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

import no1 from './no1'
import shang from './shang'
import no4 from './no4'
 import no5 from './no5'
 import no2 from './no2'
import no3 from './no3'

export default new Router({
  routes:[ //路由匹配规则
  //redirect重定向
    { path: '/', redirect: '/no1' },
    { path: '/no1', component: no1},
    { path: '/shang', component: shang},
    { path: '/no2', component: no2},
    { path: '/no3', component: no3},
    { path: '/no4', component: no4},
    { path: '/no5', component: no5},
  ],

})
//必须将创建好的router路由 router 注册到 new Vue()中
